package com.zxf.basic.base

import android.content.Context
import android.view.Gravity
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.viewbinding.ViewBinding

/**
 * @author zjc
 * @date 2022/12/28
 */
open class BottomDialog<VB : ViewBinding>(ctx: Context, init: (inflater: LayoutInflater) -> VB) : BindingDialog<VB>(ctx, init) {

    override var width: Int = ViewGroup.LayoutParams.MATCH_PARENT

    override fun onStart() {
        super.onStart()
        window?.setGravity(Gravity.BOTTOM)
    }

}